<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>显示方式</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: 1px solid red;
        }
        span{
            width: 100px;
            height: 100px;
            border: 1px solid blue;
            /*行内元素默认不显示宽高,但是可以把元素的显示方式改掉*/
            display: block;
        }
        img{
            width: 100px;
            height: 100px;
            /*隐藏元素*/
            display: none;
        }

        a{
            background-color: #0aa1ed;
            width: 132px;
            height: 40px;
            color: white;
            /*行内元素不能修改宽高,改成块级或行内块才能修改*/
            display: block;
            text-align: center;
            line-height: 40px;
            color: white;
            text-decoration: none;
            border-radius: 2px;/*设置圆角*/
        }

    </style>
</head>
<body>

<a href="http://doc.canglaoshi.org/tstore_v1/web/product_details.html">
    查看详情
</a>

<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
<img src="2_01.png" alt="">
<img src="2_02.jpg" alt="">
<img src="2_03.jpg" alt="">
</body>
</html>